using System;
using System.Configuration;

namespace Asah.SiteWorx.Search
{
	/// <summary>
	/// Properties are used to store configurations of the user
	/// </summary>
	public class Site
	{
		private static string _applicationPath;
		public Site()
		{
			//
			// TODO: Add constructor logic here
			//
		}

		/// <summary>
		/// Retreive FilesTypesToSearch of the site
		/// </summary>
		public static string FilesTypesToSearch
		{
			get
			{
				return ConfigurationSettings.AppSettings["FilesTypesToSearch"];
			}
		}

		/// <summary>
		/// Retreive DynamicFilesTypesToSearch of the site
		/// </summary>
		public static string DynamicFilesTypesToSearch
		{
			get
			{
				return ConfigurationSettings.AppSettings["DynamicFilesTypesToSearch"];
			}
		}

		/// <summary>
		/// Retreive BarredFolders of the site
		/// </summary>
		public static string BarredFolders
		{
			get
			{
				return ConfigurationSettings.AppSettings["BarredFolders"];
			}
		}

		/// <summary>
		/// Retreive BarredFiles of the site
		/// </summary>
		public static string BarredFiles
		{
			get
			{
				return ConfigurationSettings.AppSettings["BarredFiles"];
			}
		}

		/// <summary>
		/// Retreive EnglishLanguage of the site
		/// </summary>
		public static bool EnglishLanguage
		{
			get
			{
				return bool.Parse(ConfigurationSettings.AppSettings["EnglishLanguage"]);
			}
		}

		/// <summary>
		/// Assign and retreive ApplicationPath of the site
		/// </summary>
		public static string ApplicationPath
		{
			get
			{
                return ConfigurationSettings.AppSettings["SiteUrl"].ToString();// _applicationPath;
			}
            //set
            //{
            //    _applicationPath = value;
            //}
		}
	}
}
